package com.bdqn.sj;

import com.bdqn.sj.service.UserService;
import com.bdqn.sj.service.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class aopTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("user.xml");
        UserService service = (UserService) context.getBean("userService");

        User user = new User();

        service.save(user);
    }
}
